package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novel/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//用户登录
	beego.Router("/user/login", &controllers.UserController{}, "post:Login")
	//小说上传
	beego.Router("/novel/add", &controllers.NovelController{}, "post:Add")
	//阅读记录分页展示
	beego.Router("/reads/page_list", &controllers.ReadsController{}, "get:PageList")
	//阅读记录缓存
	beego.Router("/reads/list", &controllers.ReadsController{}, "get:List")
	//阅读记录删除
	beego.Router("/reads/del", &controllers.ReadsController{}, "post:Del")
}
